package org.example;
public class Student extends Man {
    private String number;

    private String date;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void getInfo(){
        System.out.println("姓名："+this.getName());
        System.out.println("性别："+this.getGender());
        System.out.println("学号："+this.getNumber());
        System.out.println("入学日期："+this.getDate());
    }

}

